
import { configureStore } from '@reduxjs/toolkit';
import themeReducer from './themeSlice';
import counterReducer from './counterSlice';

// 配置全局store
export const store = configureStore({
  reducer: {
    theme: themeReducer,
    counter: counterReducer
  }
});

// 导出store类型定义（方便TypeScript类型推断）
export type RootState = ReturnType<typeof store.getState>;
export type AppDispatch = typeof store.dispatch;
